/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * EditPanel.java
 *
 * Created on 13.06.2011, 11:26:24
 */
package gui;

/**
 *
 * @author Freshman
 */
public class EditPanel extends javax.swing.JPanel {

    //Konstruktor
    public EditPanel(MainWin aThis) {
        this.mw = aThis;
        initComponents();
    }

    //Beginn des generierten Code
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        lAdd = new javax.swing.JLabel();
        sp = new javax.swing.JScrollPane();
        ta = new javax.swing.JTextArea();
        lClose = new javax.swing.JLabel();

        setOpaque(false);

        lAdd.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pics/add.png"))); // NOI18N
        lAdd.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                lAddMouseClicked(evt);
            }
        });

        ta.setColumns(20);
        ta.setRows(5);
        sp.setViewportView(ta);

        lClose.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pics/close.png"))); // NOI18N
        lClose.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                lCloseMouseClicked(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(sp, javax.swing.GroupLayout.DEFAULT_SIZE, 168, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lAdd, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lClose, javax.swing.GroupLayout.Alignment.TRAILING)))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(lAdd)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 50, Short.MAX_VALUE)
                .addComponent(lClose))
            .addComponent(sp, javax.swing.GroupLayout.DEFAULT_SIZE, 114, Short.MAX_VALUE)
        );
    }// </editor-fold>//GEN-END:initComponents
    //Ende
    
    private void lAddMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lAddMouseClicked
        // TODO add your handling code here:
    }//GEN-LAST:event_lAddMouseClicked

    private void lCloseMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lCloseMouseClicked
        // TODO add your handling code here:
    }//GEN-LAST:event_lCloseMouseClicked

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel lAdd;
    private javax.swing.JLabel lClose;
    private javax.swing.JScrollPane sp;
    private javax.swing.JTextArea ta;
    // End of variables declaration//GEN-END:variables
    
    //Hier beginnt der manuelle Code
    private MainWin mw = null;
    //Ende
}
